Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: Reimplement permissions fetching to do it in a single transaction #21156

Merged
merged 1 commit into from
Aug 24, 2022

Conversation

bkyryliuk
Copy link
Member

@bkyryliuk bkyryliuk commented Aug 22, 2022

SUMMARY

Reimplement permissions fetching to do it in a single transaction.
It reduces latency from ~1 second to ~120 ms on our deployment

BEFORE

Screen Shot 2022-08-05 at 10 17 57 AM

AFTER

image

TESTING INSTRUCTIONS

[x] CI
[x] Dropbox Staging

@codecov
Copy link

codecov bot commented Aug 22, 2022

Codecov Report

Merging #21156 (029ee29) into master (6f3a555) will decrease coverage by 11.37%.
The diff coverage is 55.68%.

❗ Current head 029ee29 differs from pull request most recent head 84e0546. Consider uploading reports for the commit 84e0546 to get more accurate results

@@             Coverage Diff             @@
##           master   #21156       +/-   ##
===========================================
- Coverage   66.27%   54.89%   -11.38%     
===========================================
  Files        1770     1779        +9     
  Lines       67543    67838      +295     
  Branches     7185     7237       +52     
===========================================
- Hits        44764    37242     -7522     
- Misses      20940    28744     +7804     
- Partials     1839     1852       +13     
Flag Coverage Δ
hive 53.17% <33.62%> (+<0.01%) ⬆️
mysql ?
postgres ?
presto 53.07% <33.62%> (+<0.01%) ⬆️
python 57.82% <38.79%> (-23.68%) ⬇️
sqlite ?
unit 50.74% <33.62%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...-chart-controls/src/sections/advancedAnalytics.tsx 14.28% <ø> (ø)
...packages/superset-ui-core/src/query/types/Query.ts 100.00% <ø> (ø)
...ns/plugin-chart-echarts/src/Gauge/EchartsGauge.tsx 0.00% <0.00%> (ø)
...rts/src/MixedTimeseries/EchartsMixedTimeseries.tsx 0.00% <0.00%> (ø)
...hart-echarts/src/MixedTimeseries/transformProps.ts 0.00% <0.00%> (ø)
...chart-echarts/src/Timeseries/EchartsTimeseries.tsx 0.00% <0.00%> (ø)
...ns/plugin-chart-echarts/src/utils/eventHandlers.ts 0.00% <0.00%> (ø)
...lugin-chart-handlebars/src/plugin/controlPanel.tsx 50.00% <ø> (ø)
...n-chart-handlebars/src/plugin/controls/orderBy.tsx 28.57% <0.00%> (-11.43%) ⬇️
superset-frontend/src/SqlLab/actions/sqlLab.js 59.83% <ø> (-0.28%) ⬇️
... and 365 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@bkyryliuk bkyryliuk force-pushed the bogdan/optimize_perm_lookup branch 11 times, most recently from 1803d96 to c38925c Compare August 23, 2022 04:36
Copy link
Member

@geido geido left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@bkyryliuk bkyryliuk merged commit ed6212a into apache:master Aug 24, 2022
@bkyryliuk bkyryliuk deleted the bogdan/optimize_perm_lookup branch August 24, 2022 01:45
sadpandajoe added a commit to preset-io/superset that referenced this pull request Aug 31, 2022
zephyring pushed a commit to preset-io/superset that referenced this pull request Sep 2, 2022
zephyring pushed a commit to preset-io/superset that referenced this pull request Sep 2, 2022
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 2.1.0 and removed 🚢 2.1.3 labels Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/L 🚢 2.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants